﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JinDu4_In.aspx.cs" Inherits="syc.Fc.JinDu4_In" %>
<html>
<head></head>
<body>
    <script type="text/javascript" language="javascript" src="/common.js"></script>
    <form id="form1" runat="server">
    <div id="wintop" class="wintop">四分厂生产进度录入</div>
    
        <asp:Panel ID="Panel1" runat="server" CssClass="panel">

            <asp:Button ID="Button_Finish" runat="server" Text="保 存" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_Finish_Click" />
            <asp:Button ID="Button_New" runat="server" Text="录入下一条" CssClass="button" 
                Font-Bold="false" Font-Size="14px" Visible="false"
                UseSubmitBehavior="False" onclick="Button_New_Click" />
            <input type="button" value="关 闭" class="button" onclick="parent.swin_close();" />
        </asp:Panel>

    <asp:Panel ID="Panel2" runat="server" CssClass="panel2">
        <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
    </asp:Panel>
    <asp:Panel ID="Panel3" runat="server" CssClass="panel" >
   
       <fieldset>
            <legend>常规</legend>
            班次：<asp:DropDownList ID="BanCi" runat="server" Width="120px">
                <asp:ListItem Value="1">甲班</asp:ListItem>
                <asp:ListItem Value="2">乙班</asp:ListItem>
                <asp:ListItem Value="3">丙班</asp:ListItem>
                <asp:ListItem Value="4">丁班</asp:ListItem>
            </asp:DropDownList>
            产品：<asp:DropDownList ID="ChanPin" runat="server" Width="120px">
                <asp:ListItem Value="2">套管螺纹保护器</asp:ListItem>
                <asp:ListItem Value="1">油管螺纹保护器</asp:ListItem>
            </asp:DropDownList> 
            日期：<asp:TextBox ID="RiQi" runat="server" CssClass="intxt1" Width="120px"></asp:TextBox><img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('RiQi').value, document.getElementById('RiQi'));" />
        
	    </fieldset>
       <fieldset>
            <legend>原料投入</legend>
            塑质(kg)：<asp:TextBox ID="SuZhi" runat="server" CssClass="textbox" Width="120px" Text="0"></asp:TextBox>
            铁质(kg)：<asp:TextBox ID="TieZhi" runat="server" CssClass="textbox" Width="120px" Text="0"></asp:TextBox>
        </fieldset>
       <fieldset>
            <legend>焊接</legend>
            内套合格(件)：<asp:TextBox ID="NeiTao" runat="server" CssClass="textbox" Width="120px" Text="0"></asp:TextBox>
            内套不合格(件)：<asp:TextBox ID="NeiTaoFei" runat="server" CssClass="textbox" Width="120px" Text="0"></asp:TextBox>
            <br />
            外套合格(件)：<asp:TextBox ID="WaiTao" runat="server" CssClass="textbox" Width="120px" Text="0"></asp:TextBox>
            外套不合格(件)：<asp:TextBox ID="WaiTaoFei" runat="server" CssClass="textbox" Width="120px" Text="0"></asp:TextBox>
        </fieldset>
        
       <fieldset>
            <legend>注塑(件)</legend>
            01# <asp:TextBox ID="ZhuSu1" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            02# <asp:TextBox ID="ZhuSu2" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            03# <asp:TextBox ID="ZhuSu3" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            04# <asp:TextBox ID="ZhuSu4" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
        </fieldset>
        <fieldset>
            <legend>注塑废品(件)</legend>
            01# <asp:TextBox ID="ZhuFei1" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            02# <asp:TextBox ID="ZhuFei2" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            03# <asp:TextBox ID="ZhuFei3" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            04# <asp:TextBox ID="ZhuFei4" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
        </fieldset>
        
       <fieldset>
            <legend>车丝(件)</legend>
            01# <asp:TextBox ID="CheSi1" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            02# <asp:TextBox ID="CheSi2" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            03# <asp:TextBox ID="CheSi3" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            04# <asp:TextBox ID="CheSi4" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
        </fieldset>
        <fieldset>
            <legend>车丝废品(件)</legend>
            01# <asp:TextBox ID="CheFei1" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            02# <asp:TextBox ID="CheFei2" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            03# <asp:TextBox ID="CheFei3" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
            04# <asp:TextBox ID="CheFei4" runat="server" CssClass="textbox" Width="80px" Text="0"></asp:TextBox>
        </fieldset>
        <fieldset>
            <legend>入库</legend>
            入库量(套)：<asp:TextBox ID="RuKu" runat="server" CssClass="textbox" Width="120px" Text="0"></asp:TextBox>
        </fieldset> 
    </asp:Panel>


    
    </form>
    
    <script>
        var textboxs = document.getElementsByTagName("input");
        for (var i = 0; i < textboxs.length; i++) {
            if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "textbox") {
                textboxs[i].onfocus = function(e) { this.select(); };
            }
        }
        document.body.onkeypress = function(e) {
            if (!e) e = window.event;
            var tag = e.srcElement;
            if (!tag) tag = e.target;
            if (tag.className.toLowerCase() != "textbox") return;
            var i;
            if (e.keyCode == 13) {
                for (i = 0; i < textboxs.length; i++) {
                    if (tag == textboxs[i]) {
                        if (i < textboxs.length - 1) {
                            textboxs[i + 1].focus();
                        }
                        else {
                            textboxs[7].focus();
                        }
                    }
                }
            }
        };
    </script>
</body>
</html>